package concurrent.guarded;


import java.util.Timer;

public class AlarmAgent {

    // 用于记录是否连上警告服务器
    private volatile boolean connectedToServer = false;

    private final Predicate agentConnected = () -> connectedToServer;

    private final Blocker blocker = new ConditionVarBlocker();

    private final Timer heartbeatTimer = new Timer(true);

    public void sendAlarm(final AlarmInfo alarm) throws Exception{

    }


}
